import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/ai/chat/history/` + url, ...arg)


export default {
	async getByAiId(data) {
		return await request(`get_by_ai_id`, data, 'post')
	},
	async getByAiChatId(data) {
		return await request(`get_by_ai_chat_id`, data, 'post')
	},

	async batchSave(data) {
		return await request(`batch_save`, data, 'post')
	},
	async clearHistory(data) {
		return await request(`clear_history`, data, 'post')
	},
}

